package com.tinem.platform.web.auth.login;

import com.tinem.platform.web.auth.login.oauth2.Oauth2Server;
import com.tinem.platform.web.auth.page.LoginUserInfo;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.oauth2.core.user.OAuth2User;

/**
 * @author fzh
 * @version v1
 * @program: platform
 * @className LoginService
 * @description TODO
 * @site 
 * @company 
 * @create 2020-09-03 12:29
 */
public interface LoginService extends UserDetailsService {

    String findUserByEmail(String email);

    String findUserByMobile(String countryMobileCode, String mobile);

    String findUserByAccount(String account);

    LoginUserInfo getLoginUser(String userId);

    String bindUser(Oauth2Server oauth2Server, OAuth2User oAuth2User);

    String bindUserByEmail(String email,String countryMobileCode, String mobile, String name, String nickname);

    String bindUserByMobile(String email,String countryMobileCode, String mobile, String name, String nickname);

    String addUser(String email, String countryMobileCode, String mobile, String name, String nickname);
}
